import React from "react";
import "./index.scss";

const App = (props) => {
  let list = [1, 2, 3, 4, 5, 6];
  console.log("props", props);
  return (
    <div className="content">
      <div className="list">
        {
          list.map((v, k) => {
            return <div key={k} className="item">
              <i className="icon"></i>
            </div>
          })
        }
      </div>
      <form method="POST" action="/api/form">
        <p>姓名</p>
        <input name="userName" /><br />
        <p>年龄</p>
        <input name="age" /><br />
        <button type="submit">提交</button>
      </form>
      <button onClick={a}>文件</button>
      <button onClick={b}>文件</button>
    </div>
  )
}

export default App;